home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Windows Serial.xpl < prev    next >
Text File  |  1998-09-17  |  1KB  |  69 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="System\Misc"
  5. "NAME"="Windows PID"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="PID"
  8. "DESCRIPTION 1"=""
  9. "DESCRIPTION 2"=""
  10. "DESCRIPTION 3"=""
  11. "AUTHOR"="???"
  12. "COPYRIGHT"="???"
  13. "COMMENT 1"=" "
  14. "COMMENT 2"=" "
  15. "COMMENT 3"=" "
  16. "COMMENT 4"=" "
  17. "COMMENT 5"="Done by AmoKKomA..."
  18.  
  19.  
  20.  
  21. strRegPath="HKLM\Software\Microsoft\Windows\CurrentVersion\ProductID"
  22. strRegPathNT="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductID"
  23.  
  24. Sub Plugin_Initialize 
  25.  if GetWinVer=1 or GetWinVer=3 then
  26.     strValue=RegReadValue(strRegPath)
  27.  else
  28.     strValue=RegReadValue(strRegPathNT)
  29.  end if
  30.  
  31.  
  32.  Call SetUIElement(1,strValue)
  33. End Sub
  34.  
  35.  
  36. Sub Plugin_CheckData(ElementIndex)
  37.  
  38.  strValue=GetUIElement(1)
  39.  
  40.  If Len(strValue)<=0 Then
  41.  
  42.     Call DataInvalid("You have to enter a PID!")
  43.  
  44.  End If
  45.  
  46. End Sub
  47.  
  48.  
  49. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  50.  strValue=GetUIElement(1)
  51.  
  52.  if GetWinVer=1 or GetWinVer=3 then
  53.     Call RegWriteValue(strRegPath,strValue,1)
  54.  else
  55.     Call RegWriteValue(strRegPathNT,strValue,1)
  56.  end if
  57.  
  58.  
  59.  
  60.  
  61. End Sub
  62.  
  63.  
  64. Sub Plugin_Terminate 
  65. End Sub
  66.  
  67.  
  68.  
  69.